import 'package:flutter/cupertino.dart';

///回调索引函数
typedef CallBackIndex = void Function(int selectIndex);

///回调context函数
typedef CallBackContext=void Function(BuildContext context);

///回调点击的弹框标签
typedef CallBackDialog=void Function(String? tag);

///回调选中的优惠券
typedef CallBackUseCoupon = void Function(List? couponList,String amount);


///回调支付密码是否正确
typedef CallbackPayPassword = void Function(bool success);

///回调选择的红包
typedef CallBackUseRedpack = void Function(String repackId,String amount);


///点击排序的回调函数
typedef CllBackSort = void Function(Map<String,dynamic> result,int curIndex);

///点击回调详情函数
typedef CallBackInfo=void Function(dynamic info,int num);

///点击回调自身索引及子节点索引
typedef CallBackIndexChildIndex=void Function(int index,int childIndex,List<int> indexList);

///复选框回调函数 groupIndex 分组索引 index 自身索引 isCheck 是否选中
typedef CallBackCheckbox=void Function(int groupIndex,int index,bool isCheck);